package com.itshizhan.itjidancideveloper.response

enum class CodeMsgEnum(override val code: Int, override val msg: String):CodeMsg {
  SUCCESS(1, "success"),
  FAIL(0, "fail"),

  /**
   * 保存失败
   */
  SAVE_FAIL(0, "保存失败"),
  /**
   * 未知账户
   */
  UNKNOWN_ACCOUNT(1001, "UNKNOWN ACCOUNT"),
  /**
   * 无效凭证
   */
  INVALID_CERTIFICATE(1002, "INVALID CERTIFICATE"),

  /**
   * 未授权
   */
  UNAUTHORIZED(1003, "UNAUTHORIZED"),

  /**
   * 参数错误
   */
  ERROR_PARAMETER(4000, "参数错误"),

  /**
   * 缺失参数
   */
  MISSING_PARAMETER(4001, "MISSING PARAMETER"),


  /**
   * 保存数据失败
   */
  FAILED_TO_SAVE_DATA(4002, "FAILED TO SAVE DATA"),

  /**
   * 重复记录
   */
  DUPLICATE_RECORD(4003, "DUPLICATE RECORD"),

  /**
   * 无效或已删除
   */
  INVALID_OR_DELETED(4004, "INVALID OR DELETED"),

  /**
   * 未找到记录
   */
  RECORD_NOT_FOUND(4005, "RECORD_NOT_FOUND"),

  /**
   * 不支持的文件格式
   */
  UNSUPPORTED_FILE_FORMAT(4006, "UNSUPPORTED FILE FORMAT"),

  /**
   * 无效内容
   */
  INVALID_CONTENT(4007, "INVALID CONTENT"),

  /**
   * 记录存在引用
   */
  RECORD_HAS_REFERENCE(4008, "RECORD HAS REFERENCE"),
}